package com.vehicle.service;

import com.vehicle.bean.CollegeDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vehicle.vo.CollegeDetailListVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-05-15
 */
@Service
public interface CollegeDetailService extends IService<CollegeDetail> {

    //根据collegeId和detail添加信息
    public Boolean addCollegeDetail(String ip,Integer id,Integer collegeId,String detail);

    //根据cdId获取collegeId
    public Integer getCollegeIdById(Integer cdId);

    //根据cdId获取detail
    public String getDetailById(Integer cdId);

    //分页查询所有
    public CollegeDetailListVO getAllList(Integer page,Integer size);

    //根据collegeId获取所有
    public CollegeDetailListVO getListByCollegeId(Integer collegeId,Integer page,Integer size);

    //根据cdId删除信息
    public Boolean deleteCollegeDetail(String ip,Integer id,Integer cdId);

    //根据cdId来修改collegeId和detail
    public Boolean updateCollegeDetailById(String ip,Integer id,Integer cdId,Integer collegeId,String detail);

}
